package com.mall.group_booking;

import com.mall.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/29 18:36
 */
@SpringBootApplication
@EnableFeignClients
@MapperScan("com.mall.group_booking.mapper")
@EnableDiscoveryClient
public class GroupBookingApplication {

    public static void main(String[] args) {
        SpringApplication.run(GroupBookingApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }

}
